<?php
	$css_list[0]['url'] = './tpl/css/setting.css';
	$js_list[0] = './public/js/city.js';
?>
<!--{template inc/header_n}-->
<div id="body" class="fm960">
	<div class="piece1">
		<div class="piece1_hd"></div>
		<div class="piece1_bd clearfix">
			<div style="width:1180px;">
				<!--{template inc/settings/settings_menu}-->
				<div id="setting_box" class="fl">
					<div id="setting_form" class="setting_basic">
						<form id="myform" action="{u shareinfo/createorder}" method="post" enctype="multipart/form-data">
							<dl>
								<dd>选择案例：</dd>
								<dt class="email">
                                    <select id="artid" name="artid">
                                        {loop $arts $art}
                                        <option value="{$art['id']}">{$art['title']}</option>
                                        {/loop}
                                    </select>
									<div class="iner"><span>*</span></div>
                                </dt>
								<dd>价格：</dd>
								<dt class="email">
									<input name="price" type="text" />
                                </dt>
								<dd>新郎：</dd>
								<dt class="email">
									<input name="xl" type="text" />
                                </dt>
								<dd>新郎手机号：</dd>
								<dt class="email">
									<input name="xl_tel" type="text" />
                                </dt>
								<dd>新娘：</dd>
								<dt class="email">
									<input name="xn" type="text" />
								</dt>
								<dd>新娘手机号：</dd>
								<dt class="email">
									<input name="xn_tel" type="text"  placeholder="将作为评价账号"/>
								</dt>
								<dd>婚宴时间：</dd>
								<dt class="email">
                                    <input name="service_day" type="text" onClick="WdatePicker()" readonly="true"/>
                                    <input type="radio" id="st1" name="service_time" value="中午" checked><label for="st1">中午</label>
                                    <input type="radio" id="st2" name="service_time" value="晚上"><label for="st2">晚上</label>
								</dt>
								<dd>婚宴地点：</dd>
								<dt class="email">
									<input name="address" type="text"  placeholder=""/>
								</dt>
								<dd>&nbsp;&nbsp;</dd>
								<dt>
									<input class="green_button" type="submit" value="确定">
								</dt>
                            </dl>
                            <input type="hidden" name="docreate" value="1">
						</form>
					</div>
				</div>
			</div>
		</div>
		<div class="piece1_ft"></div>
	</div>
	
	<div class="huoguojun2" id="huoguojun"><a href="/list.php?action=robot"><img src="/public/v1/img/huoguojun.png"></a></div>
    <div class="i_notice2">
        <div class="j_title">公告栏</div>
        <div class="j_list">
            <ul>
             <li><a href="#"><b>婚礼款项建设银行冻结监管</b></a></li>
             <li><a href="#"><b>真实新人评价（新人凭婚宴发票进行评价）</b></a></li>
             <li><a href="#"><b>没有中间商赚差价</b></a></li>
            </ul>
        </div>
    </div>
</div>
<script type="text/javascript" charset="utf-8" src="/public/js/jquery.form.min.js"></script>
<script type="text/javascript" charset="utf-8" src="/public/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
$('#myform').submit(function(){
    $(this).ajaxSubmit({
        dataType: "json",
        beforeSubmit: function(a,f,o) {

        },
        success: function(data) {
            if(data.status == 0) {
                alert('订单创建成功');
                location = '/shareinfo.php?action=sorder';
            } else {
                alert(data.data);
            }
        },
        error: function() {
            alert('服务器繁忙，请稍候再试');
        }
    });
    return false;
});
</script>
<!--{template inc/footer}-->